﻿
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DAL
{
    public class AdderDAL
    {
        public AdderDAL(MyContext context)
        {
            Context = context;
        }

        public MyContext Context { get; }

        public int AdderInsert(Adder adder)
        {
            Context.Adders.Add(adder);
            return Context.SaveChanges();
        }

        public dynamic AdderShow()
        {
            var m= Context.Adders.AsQueryable();
            return m;
        }
    }
}
